package com.ad_hccm.service.impl.GeneralInformation;

import com.ad_hccm.dao.GeneralInformation.SmokeDao;
import com.ad_hccm.domain.GeneralInformation.Smoke;
import com.ad_hccm.service.GeneralInformation.SmokeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 吸烟史ServiceImpl
 */
@Service
public class SmokeServiceImpl implements SmokeService {

    @Autowired
    private SmokeDao smokeDao;

    @Override
    public boolean save(Smoke smoke) {
        return smokeDao.save(smoke);
    }

    @Override
    public boolean update(Smoke smoke) {
        return smokeDao.update(smoke);
    }

    @Override
    public Smoke getById(String id) {
        return smokeDao.getById(id);
    }

    @Override
    public List<Smoke> getAll() {
        return smokeDao.getAll();
    }
}
